//
//  ShowRecommendWebViewController.m
//  XDBaseFrameWork
//
//  Created by XD-XY on 10/30/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "ShowRecommendWebViewController.h"

@interface ShowRecommendWebViewController ()

@end

@implementation ShowRecommendWebViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.titleLabel.text = @"客户指南";
    
    UIWebView *malongWeb = [[UIWebView alloc] init];
    malongWeb.frame = self.contentView.bounds;
    malongWeb.backgroundColor = [UIColor clearColor];
    [malongWeb loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.meike365.cn/index.php?m=Api&c=Index&a=help"]]];
    malongWeb.delegate  =self;
    [self.contentView addSubview:malongWeb];
}

-(void)webViewDidStartLoad:(UIWebView *)webView
{
    [XDTools showProgress:self.contentView];
}

-(void)webViewDidFinishLoad:(UIWebView *)webView
{
    [XDTools hideProgress:self.contentView];
}


- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
